package com.levi.controller;

import com.levi.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shentong
 * @since 2022/6/12 11:41 AM
 */
@RestController
@RequestMapping("product")
public class ProductController {
    @Autowired
    private ProductService productService;


    @GetMapping("decut")
    public boolean create(@RequestParam Integer id,
                            @RequestParam Integer count){
        productService.decut(id, count);
        return true;
    }
}
